
import { Column, Entity, PrimaryGeneratedColumn} from "typeorm";



@Entity()
export default class SymbolFactorEntity{
    @PrimaryGeneratedColumn()
    public id!: number;

    @Column({type: 'varchar', length: 16})
    public symbol!: string;

    @Column({type: 'simple-array'})
    public feature_vector!: (number)[];

    @Column({type: 'int', default: 0})
    public label?: number;
    
    @Column({type: 'datetime', nullable: true})
    public time: Date;

    @Column({type: 'varchar', length: 8, default: '4h'})
    public period: string;
}
